#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <conio.h>

#define UP 72
#define DOWN 80
#define LEFT 75
#define RIGHT 77

struct Snakebody{
	int x;
	int y;
	struct Snakebody *next;
};

struct Linkedlist{
	int currentElement;
	struct Snakebody headerNode;
};

struct Linkedlist* createLinkedlist();
int addElement(struct Linkedlist* pList, int position, struct Snakebody element);
void removeElement(struct Snakebody *pList, int position);
void clearLinkedlist(struct Snakebody *pList);
void movedirec(void);
void moveNode(void);